package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName goods
 */
@TableName(value ="goods")
@Data
public class Goods implements Serializable {
    /**
     * 商品id
     */
    @TableField(value = "id")
    private Long id;

    /**
     * 商品名称
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 图片
     */
    @TableField(value = "picture")
    private String picture;

    /**
     * 商品描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 商品价格
     */
    @TableField(value = "price")
    private double price;

    /**
     * 商品优惠价
     */
    @TableField(value = "discounted_price")
    private double discountedPrice ;

    /**
     * 数量
     */
    @TableField(value = "number")
    private Long number;

    /**
     * 商品类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 商家id
     */
    @TableField(value = "business_id")
    private Long businessId;

    /**
     * 交易量
     */
    @TableField(value = "pay_count")
    private Long payCount;

    /**
     * 创建日期
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 修改日期
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 商品生产地
     */
    @TableField(value = "address")
    private String address;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}